package com.ivan.hospital.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ivan.model.entity.hosp.Schedule;
import com.ivan.model.vo.hosp.ScheduleQueryVo;

import java.util.List;
import java.util.Map;

/*
 * @Author      Ivan
 * @Date        2023/4/4 21:06
 * @Description
 */
public interface ScheduleService {
    //添加医院排班
    int saveSchedule(Schedule schedule);

    //根据医院编号和科室编号,查询排班规则数据
    public Map<String, Object> getBookingScheduleRule(long page, long limit, String hoscode, String depcode);

    //根据医院编号,科室编号和工作日期,查询排班详细信息
    public List<Schedule> getScheduleDetail(String hoscode, String depcode, String workDate);

    //条件查询医院排班带分页
    Page<Schedule> findByPage(long current, long limit, ScheduleQueryVo queryVo);

    //根据id查询医院排班
    Schedule findById(Long id);

    //根据id删除医院排班
    int removeById(Long id);

    //根据idList批量删除医院排班
    int removeByIds(List<Long> idList);

    //修改医院排班
    int updateSchedule(Schedule schedule);
}
